package com.handydata.antifraud.port;


import com.bstek.urule.runtime.KnowledgeSession;
import com.handydata.antifraud.common.exception.RuleNotFoundException;
import com.handydata.antifraud.entity.RiskRuleDictIinfoDao;

import java.util.function.Consumer;

public interface RuleEngineInvokers {

    public <R> void invokeDecision(Consumer<KnowledgeSession> consumer) throws RuleNotFoundException;

    public void refreshPackage(String packageName);

    RiskRuleDictIinfoDao ruleEngineInvoker(String packageName, String processName);

}
